//
//  ViewController.swift
//  ZYHttp
//
//  Created by Zhouyi on 01/14/2025.
//  Copyright (c) 2025 Zhouyi. All rights reserved.
//

import UIKit
import ZYHttp

let zScreenWidth = UIScreen.main.bounds.size.width
let zScreenHeight = UIScreen.main.bounds.size.height

class ViewController: UIViewController {
    
    lazy var requestButton: UIButton = {
        let button = UIButton(frame: CGRect(x: zScreenWidth - 64, y: zScreenHeight - 108, width: 44, height: 44))
        button.titleLabel?.font = UIFont.systemFont(ofSize: 16)
        button.setTitleColor(.white, for: .normal)
        button.setTitle("请求", for: .normal)
        button.backgroundColor = .black
        button.layer.cornerRadius = 22
        button.addTarget(self, action: #selector(request), for: .touchUpInside)
        return button
    }()

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .white
        view.addSubview(requestButton)
    }
    
    @objc func request() {
        
    }
}

